package com.zsoft.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zsoft.dao.RolePrivilegeDao;
import com.zsoft.domain.RolePrivilegeDomain;
import com.zsoft.service.RolePrivilegeService;

@Service
public class RolePrivilegeServiceImpl implements RolePrivilegeService {
	@Autowired
	private RolePrivilegeDao rpDao;

	@Override
	public void add(RolePrivilegeDomain t) {
		rpDao.add(t);
	}

	@Override
	public void deleteById(Long id) {
		rpDao.deleteById(id);
	}

	@Override
	public void deleteByExample(RolePrivilegeDomain t) {
		rpDao.deleteByExample(t);
	}

	@Override
	public void update(RolePrivilegeDomain t) {
		rpDao.update(t);
	}

	@Override
	public void saveOrUpdate(RolePrivilegeDomain t) {
		// TODO Auto-generated method stub
	}

	@Override
	public List<RolePrivilegeDomain> findList(RolePrivilegeDomain t) {
		return rpDao.getList(t);
	}

	@Override
	public RolePrivilegeDomain getById(Long id) {
		return rpDao.getById(id);
	}

}
